import buildingApi from '@/config/server/api/building';

function listByHousesId(housesId) {
  return buildingApi.product.listByHousesId.fetch({housesId}).then(res => {
    return res.map(item => {
      item.key = item.productId
      item.value = item.productName
      return item
    })
  })
}

export default {
  listByHousesId
}
